<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<h1>首页</h1>
<a href="http://localhost/logout">登出</a>
<br/>
<br/>
<div th:each="menu:${menus}">
    <a th:if="${menu.parentId != 0}" th:href="${menu.url}">[[${menu.menuName}]]</a>
</div>
</body>
</html>